package com.tzl.design_pattern.singleton_pattern;

/**
 * 饿汉式
 *
 * @author Zhilei Tang
 * @date Created in 2020/11/15 13:40
 */
public class HungrySingleton {
  public static final HungrySingleton instance = new HungrySingleton();

  private HungrySingleton() {}

  public static HungrySingleton getInstance() {
    return instance;
  }
}
